extends ./index.jade

block content
	.rightSide
		.container-fluid
			.row.text-right.managerOnly
				a.btn.btn-success(href='/views/add_school.html') 新建学校
			.row
				.col-md-8.col-md-offset-2
					table.table.table-hover.text-center
						thead
							th.text-center 地区
							th.text-center 学校
							th.text-center 堂主
							th.text-center.managerOnly 操作
						tbody(id='schoolList')
					.row.text-right.forcedVerticalCenter
						#paginator.paginator
						span.marginLeft.marginRight
							|共
							span#total
							|条记录

	script(id='schoolTmpl' type="text/x-dot-template")
		|{{~it:school}}
		tr
			td {{=school.school_address}}
			td 
				a(href='/views/school_detail.html?school_id={{=school.school_id}}').text-primary.masterDisabled {{=school.school_name}}
			td {{=school.master_name}}
			td.managerOnly
				a.btn.btn-danger(data-id="{{=school.school_id}}").deleteSchool 删除
		|{{~}}

	script(src='/js/lib/require.js' data-main='/js/school_manage')